package main
import "fmt"
func main(){
	
	
	func(){
		fmt.Printf("func1()内部\n")
	}()
	
	fx := func(){
		fmt.Printf("func2()内部\n")
	}
	fx()
	
	fx3 := func() int{
		fmt.Printf("func3()内部\n")
		return 1
	}
	fx3()
	fmt.Printf("fx3 type is : %T\n",fx3)
	fmt.Printf("fx3 result is : %d\n",fx3())
	
	var a int
	fx4 := func()int{
		fmt.Printf("func4()内部\n")
		return 2
	}
	a = fx4()
	fmt.Printf("a = %d\n",a)
}
